import { GameBetOrderInfo } from "./GameBetOrderInfo";
import { GameResultInfo } from "./GameResultInfo";

export class GameRoomInfo {
    public uid: string = "";

    public cid: number = 0;

    /**
     * 当前奖池
     *
     * @type {{ [key: number]: number }}
     * @memberof GameRoomInfo
     */
    public prizePool: number = 0;

    /**
     * 过期时间
     *
     * @type {number}
     * @memberof GameRoomInfo
     */
    public expireTime: number = 0;

    /**
     * 开始时间
     *
     * @type {number}
     * @memberof GameRoomInfo
     */
    public startTime: number = 0;

    /**
     * 最新的开奖结果
     *
     * @type {GameResultInfo}
     * @memberof GameRoomInfo
     */
    public result: GameResultInfo = new GameResultInfo();

    /**
     * 当前下注的订单
     *
     * @type {GameBetOrderInfo[]}
     * @memberof GameRoomInfo
     */
    public orders: GameBetOrderInfo[] = [];

    public codeRates: { [key: number]: number } = {};


    /**
     * 配置id
     *
     * @type {number}
     * @memberof GameRoomInfo
     */
    public configId: number = 0;

    /**
     *  创建时间
     *
     * @type {number}
     * @memberof GameRoomInfo
     */
    public createTime: number = 0;

    /**
     * 在这个房间的玩家
     *
     * @type {string[]}
     * @memberof GameRoomInfo
     */
    public onlineUsers: string[] = [];



    /**
     * 奖号id 自动累加
     *
     * @type {number}
     * @memberof GameRoomInfo
     */
    public prizeId: number = 1;


}